// HpiHandler.h: interface for the CHpiHandler class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(HPIHANDLER_H)
#define HPIHANDLER_H

#include <string>
#include <map>
#include <vector>

using std::string;
using std::map;

class CHpiHandler
{
public:
	void MakeLower(char* s);
	void MakeLower(string &s);
	int LoadFile(string name,void* buffer);
	int GetFileSize(string name);
	CHpiHandler();
	virtual ~CHpiHandler();

	struct FileData{
		string hpiname;
		int size;
	};
	map<string,FileData> files;
	std::vector<std::string> GetFilesInDir(std::string dir);
};

extern CHpiHandler* hpiHandler;

#endif // !defined(HPIHANDLER_H)
